import request from '@/router/axios';
import qs from 'qs';

// 数据列表-预约日历列表
export const getListOfSearchSelect = (data) => request({
    url: '/appointment/v1/appointmentCalendar',
    method: 'post',
    data: qs.stringify(data),
})

// 数据列表-点击日期查设备列表
export const getEquipmentList = (data) => request({
    url: '/appointment/v1/appointmentCalendarEquipment',
    method: 'post',
    data: qs.stringify(data),
})

// 查询预约单详情
export const findById = (data) => request({
    url: '/appointment/v1/findById',
    method: 'post',
    data: qs.stringify(data),
})

// 查询设备类型 tree
export const getDevTypeList = (data) => request({
    url: '/equipmentType/v1/findAllType',
    method: 'post',
    data: qs.stringify(data),
})